package myStack;
import java.util.Iterator;

public class Test {
    public static void main(String[] args) {
        MyStack stack = new MyStack();
        stack.push(2);
        stack.push(9);
        stack.push(12);
        System.out.println(stack.pop());
        System.out.println(stack.pop());
        System.out.println(stack.pop());
    }
}
